/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.maybenull.cadence.example.foo;

import com.vaadin.Application;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
import org.apache.felix.scr.annotations.Service;
import org.maybenull.cadence.web.IViewContribution;

/**
 *
 * @author pettymt
 */
@org.apache.felix.scr.annotations.Component(name="foo-view")
@Service
public class FooView implements IViewContribution {

    @Override
    public Component getView(Application application) {
        final VerticalLayout layout = new VerticalLayout();
        final Label label = new Label("foo foo foo");
        layout.addComponent(label);
        return layout;
    }

    @Override
    public String getIcon() {
        return "icons/application_view_columns.png";
    }

    @Override
    public String getName() {
        return "Foo Foo View";
    }
    
}
